package com.ruoyi.project.wx.service.impl;


import com.ruoyi.project.wx.dao.GoodsImagesDao;
import com.ruoyi.project.wx.domain.GoodsImagesDO;
import com.ruoyi.project.wx.service.GoodsImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class GoodsImagesServiceImpl implements GoodsImagesService {
	@Autowired
	private GoodsImagesDao goodsImagesDao;
	
	@Override
	public GoodsImagesDO get(String id){
		return goodsImagesDao.get(id);
	}
	
	@Override
	public List<GoodsImagesDO> list(Map<String, Object> map){
		return goodsImagesDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return goodsImagesDao.count(map);
	}
	
	@Override
	public int save(GoodsImagesDO goodsImages){
		return goodsImagesDao.save(goodsImages);
	}
	
	@Override
	public int update(GoodsImagesDO goodsImages){
		return goodsImagesDao.update(goodsImages);
	}
	
	@Override
	public int remove(String id){
		return goodsImagesDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return goodsImagesDao.batchRemove(ids);
	}

	@Override
	public int removeByGoodsId(String goodsId) {
		return goodsImagesDao.removeByGoodsId(goodsId);
	}
	
}
